/**
 * Maps：字典
 */
main(List<String> args) {
  // 第一种定义方式
  var person1 = {
    "name": "张三",
    "age": 20,
    "work": ["程序员", "送外卖"],
  };
  print(person1);
  print(person1["name"]);
  print(person1["age"]);
  print(person1["work"]);

  // 第二种定义方式
  var person2 = new Map();
  person2["name"] = "李四";
  person2["age"] = 34;
  person2["work"] = "123";
  print(person2);
  print(person2["name"]);
  print(person2["age"]);
  print(person2["work"]);
}
